/**
 *  @author TalkTao
 * @description  按需引入Vant
 */
import {
  Button,
  Tag,
  Rate,
  TreeSelect,
  Tabbar,
  ConfigProvider,
  Swipe,
  SwipeItem,
  Skeleton,
  Notify,
  Grid,
  GridItem,
  Empty,
  Col,
  Row,
  TabbarItem,
  Sticky,
  NavBar,
  Icon,
  Search,
  DropdownMenu,
  DropdownItem,
  Image,
  Lazyload,
  Tabs,
  Tab,
  Toast,
  Field,
  Cell,
  CellGroup,
  Form,
  List,
  Badge,
  Overlay,
  Popup,
  Divider,
  Radio,
  RadioGroup,
  Picker,
  Uploader,
  CheckboxGroup,
  Checkbox
} from "vant";
const pluginsVant = [
  Button,
  Tabbar,
  TabbarItem,
  Sticky,
  NavBar,
  Icon,
  Search,
  DropdownMenu,
  DropdownItem,
  Image,
  Lazyload,
  Tabs,
  Tab,
  Toast,
  Field,
  Cell,
  CellGroup,
  Form,
  List,
  Col,
  Row,
  Grid,
  GridItem,
  ConfigProvider,
  Notify,
  Empty,
  Skeleton,
  Swipe,
  SwipeItem,
  Tag,
  Rate,
  TreeSelect,
  Badge,
  Overlay,
  Popup,
  Divider,
  Radio,
  RadioGroup,
  Picker,
  Uploader,
  CheckboxGroup,
  Checkbox
];
export const vantPlugins = {
  install: function (vm) {
    pluginsVant.forEach((item: any) => {
      vm.component(item.name, item);
    });
  },
};
